

const promise = Promise.resolve({name: "yz"})
// 相当于下面
const promise2 = new Promise((resolve, reject) => {
  resolve({name: "yz"})
});

promise.then(res => {
  console.log(res);
})
